Change in openvpn[master]: Move cipher/data-ciphers warning to D_LOW (verb 4)
A message that is not in the archive (sent off-list or not yet received): gerrit.1726491830000.Ie2797a82ad769cb640440d1ba7dfeb416e7b932d@...2715...
Attention is currently required from: flichtenheld.
Hello flichtenheld,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/746?usp=email
to review the following change.
Change subject: Move cipher/data-ciphers warning to D_LOW (verb 4)
......................................................................
Move cipher/data-ciphers warning to D_LOW (verb 4)
These warnings served a purpose in OpenVPN 2.6.x to warn people about the changed behaviour. But for 2.7 this is will be more log spam than a helpful message. So only show this warning on a high verbosity level.
---
M src/openvpn/options.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/46/746/1
src/openvpn/options.c +2 -2
@@ -3546,7 +3546,7 @@* parts of OpenVPN assert that the ciphername is set */ o->ciphername ="BF-CBC" ; -msg (M_INFO ,"Note: --cipher is not set. OpenVPN versions before 2.5 " +msg (D_LOW ,"Note: --cipher is not set. OpenVPN versions before 2.5 " "defaulted to BF-CBC as fallback when cipher negotiation " "failed in this case. If you need this fallback please add " "'--data-ciphers-fallback BF-CBC' to your configuration "
@@ -3555,7 +3555,7 @@else if (!o->enable_ncp_fallback && !tls_item_in_cipher_list (o->ciphername, o->ncp_ciphers)) { -msg (M_WARN ,"DEPRECATED OPTION: --cipher set to '%s' but missing in " +msg (D_LOW ,"DEPRECATED OPTION: --cipher set to '%s' but missing in " "--data-ciphers (%s). OpenVPN ignores --cipher for cipher " "negotiations. " , o->ciphername, o->ncp_ciphers);
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/746?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie2797a82ad769cb640440d1ba7dfeb416e7b932d
Gerrit-Change-Number: 746
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newchange
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/746?usp=email )
Change subject: Move cipher/data-ciphers warning to D_LOW (verb 4)
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
I agree to the first change (no --cipher in config).
The second one is still warning-worthy - if someone uses --cipher and expects it to actually do something, it is helpful to warn why nothing happens.
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/746?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie2797a82ad769cb640440d1ba7dfeb416e7b932d
Gerrit-Change-Number: 746
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: cron2 <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Mon, 16 Sep 2024 13:27:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/746?usp=email )
Change subject: Move cipher/data-ciphers warning to D_LOW (verb 4)
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/746?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie2797a82ad769cb640440d1ba7dfeb416e7b932d
Gerrit-Change-Number: 746
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Mon, 16 Sep 2024 13:28:20 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
PATCH 1/1 Move cipher/data-ciphers warning to D_LOW (verb 4)
In reply to a message not in the archiveFrom: Arne Schwabe <[email protected]...>
These warnings served a purpose in OpenVPN 2.6.x to warn people about the changed behaviour. But for 2.7 this is will be more log spam than a helpful message. So only show this warning on a high verbosity level.
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/746
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>
src/openvpn/options.c +2 -2
@@ -3546,7 +3546,7 @@* parts of OpenVPN assert that the ciphername is set */ o->ciphername ="BF-CBC" ; -msg (M_INFO ,"Note: --cipher is not set. OpenVPN versions before 2.5 " +msg (D_LOW ,"Note: --cipher is not set. OpenVPN versions before 2.5 " "defaulted to BF-CBC as fallback when cipher negotiation " "failed in this case. If you need this fallback please add " "'--data-ciphers-fallback BF-CBC' to your configuration "
@@ -3555,7 +3555,7 @@else if (!o->enable_ncp_fallback && !tls_item_in_cipher_list (o->ciphername, o->ncp_ciphers)) { -msg (M_WARN ,"DEPRECATED OPTION: --cipher set to '%s' but missing in " +msg (D_LOW ,"DEPRECATED OPTION: --cipher set to '%s' but missing in " "--data-ciphers (%s). OpenVPN ignores --cipher for cipher " "negotiations. " , o->ciphername, o->ncp_ciphers);
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/746?usp=email )
Change subject: Move cipher/data-ciphers warning to D_LOW (verb 4)
......................................................................
Patch Set 1: Code-Review-1
(1 comment)
Patchset:
PS1:
misclicked. this one I do not agree to "as is"
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/746?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie2797a82ad769cb640440d1ba7dfeb416e7b932d
Gerrit-Change-Number: 746
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Mon, 16 Sep 2024 13:31:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/746?usp=email )
Change subject: Move cipher/data-ciphers warning to D_LOW (verb 4)
......................................................................
Patch Set 3: Code-Review-1
(1 comment)
Patchset:
PS3:
discussed on IRC, pushed to https://community.openvpn.net/openvpn/wiki/CommunityMeetup2024
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/746?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie2797a82ad769cb640440d1ba7dfeb416e7b932d
Gerrit-Change-Number: 746
Gerrit-PatchSet: 3
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Tue, 17 Sep 2024 12:55:48 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/746?usp=email )
Change subject: Move cipher/data-ciphers warning to D_LOW (verb 4)
......................................................................
Patch Set 3:
(1 comment)
Patchset:
PS3:
So as discussed today, this only scratches the top of the itch... what we want
- make "--data-ciphers" accept something like "default plus AES-128-CBC", so future changes in "default" (adding a new supercipher, or deprecating something) will have an effect, and not get negated by having --data-ciphers AES-128-GCM:AES-128-CBC stuck in config files (again)
- adjust the warning messages(2) to print the full syntax for the --data-cipher command to be added
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/746?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie2797a82ad769cb640440d1ba7dfeb416e7b932d
Gerrit-Change-Number: 746
Gerrit-PatchSet: 3
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Fri, 20 Sep 2024 15:45:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: plaisthos.
flichtenheld has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/746?usp=email )
Change subject: Move cipher/data-ciphers warning to D_LOW (verb 4)
......................................................................
Patch Set 3: Code-Review-1
(1 comment)
File src/openvpn/options.c:
http://gerrit.openvpn.net/c/openvpn/+/746/comment/30ce7242_48e36053 :
PS3, Line 3558: msg(D_LOW, "DEPRECATED OPTION: --cipher set to '%s' but missing in "
I do not agree with this part of the patch. Since this only happens if you have a --cipher in your config I think it is fine to keep this warning. I would only reduce the other one since that is basically a warning about the recommended config.
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/746?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie2797a82ad769cb640440d1ba7dfeb416e7b932d
Gerrit-Change-Number: 746
Gerrit-PatchSet: 3
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Comment-Date: Fri, 27 Dec 2024 12:24:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment